package com.ug.common.utils;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author LY
 * @create 2024/7/16 16:58
 * @Description StringUtil
 */
public class StringUtil extends StringUtils {

    private static final Logger log = LoggerFactory.getLogger(StringUtils.class);

    /**
     * 判断编辑类型
     * @param id 编号
     */
    public static String getEditType(Long id){
        if (id != null){
            return "编辑成功";
        } else {
            return "添加成功";
        }
    }
}
